package com.wy.panda.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.wy.panda.common.util.SpringContextUtils;

/**
 * 配置SpringContextUtils工具类
 * @author wangyuan
 * @since 2019年6月1日 上午1:24:40
 *
 */
@Configuration
public class SpringContextAutoConfig {

	@Bean
	@ConditionalOnMissingBean(SpringContextUtils.class)
	public SpringContextUtils createSpringContextUtils() {
		return new SpringContextUtils();
	}
}
